package se.sics.kompics.tutorial.tutorial4;

import se.sics.kompics.launch.Scenario;
import se.sics.kompics.launch.Topology;

public final class Executor_PUC {

	public static void main(String[] args) {
		Topology topology1 = new Topology()
		{
			private static final long serialVersionUID = 5917842835397017771L;

			{
				node(1, "127.0.0.1", 22031);
				node(2, "127.0.0.1", 22032);
				node(3, "127.0.0.1", 22033);
				defaultLinks(1000, 0);
			}
		};
		Topology topology2 = new Topology()
		{
			private static final long serialVersionUID = 5917842835397017771L;

			{
				node(1, "127.0.0.1", 22031);
				node(2, "127.0.0.1", 22032);
				defaultLinks(1200, 0);
			}
		};
		
		Scenario scenario1 = new Scenario(Main_PUC.class) {
			{
				command(1, "D2200:P1-1");
				command(2, "D2000:P1-2");
				command(3, "D2000:P1-3");
			}
		};
		
		Scenario scenario2 = new Scenario(Main_PUC.class) {
			{
				command(1, "D2000:P1-1");
				command(2, "D2200:P1-2");
				command(3, "D2200:P1-3");
			}
		};
		Scenario scenario3 = new Scenario(Main_PUC.class) {
			{
				command(1, "P1-1");
				command(2, "P1-2");
			}
		};
		
//		scenario1.executeOn(topology1);
		scenario2.executeOn(topology1);
//		scenario3.executeOn(topology2);

		//System.exit(0);
	}
}
